package com.qiaofang.applet.service.other.repository;

import com.qiaofang.applet.service.other.domain.Corporation;
import org.springframework.data.mongodb.repository.MongoRepository;
import org.springframework.stereotype.Repository;

/**
 * @author QF2019
 */
@Repository
public interface CorporationRepository extends MongoRepository<Corporation, String> {

    /**
     * 根据属性查询数据
     * @param corporationCode
     * @return
     */
    Corporation findOneByCorporationCode(String corporationCode);

    /**
     * 根据官网域名查询集团信息
     * @param webDomain
     * @return
     */
    Corporation findOneByWebDomain(String webDomain);
}
